from . import views
urlpatterns = [

]

from rest_framework.routers import DefaultRouter
router = DefaultRouter()

router.register(r'infos',views.AreasViewSet,base_name='')

urlpatterns += router.urls

# from django.conf.urls import url,include

# from rest_framework.routers import DefaultRouter
#
# from .views import AreaSerializer
#
# router = DefaultRouter()
#
# router.register(r'infos',AreaSerializer,base_name='area')
#
# urlpatterns = [
#     # url(r'^',include(router.urls)),
# ]
#
# urlpatterns += router.urls